//
//  ViewController.h
//  lib
//

//
#import <UIKit/UIKit.h>



@class ViewBase;




@interface ViewController : UIViewController
{
	ViewBase*			m_BaseView;			
	
	UIDeviceOrientation	m_DeviceOrie;
	
	double				m_LockStartTime;
	double				m_LockTime;
	id					m_pLockSenderObj;	
	BOOL				m_IsRotating;
}
@property(nonatomic, readonly) ViewBase*			m_BaseView;
@property(nonatomic, readonly) UIDeviceOrientation	m_DeviceOrie;
@property(nonatomic, readonly) BOOL					m_IsRotating;

- (void)LockRotate:(id)sender lockTime:(double)lock_time;
- (BOOL)UnlockRotate:(id)sender;
- (void)update;

- (void)addSubview:(UIView*)view;
- (void)removeSubview:(UIView*)view;
- (void)removeSubviewAll;
- (void)replaceSubView:(UIView*)new_view oldView:(UIView*)old_view;

@end
